package com.wei.czz.common.vo.admin.role;

import com.wei.czz.common.jsr303.group.Save;
import com.wei.czz.common.jsr303.group.Update;
import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2021-10-02 11:21:00
 * className: RoleVo 系统角色请求参数封装Vo类
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class RoleVo extends BaseEntity {

    /**
     * 角色主键
     */
    @NotNull(message = "角色主键不能为空", groups = { Update.class })
    private Long roleId;

    /**
     * 角色名称
     */
    @NotBlank(message = "角色名称不能为空", groups = { Save.class, Update.class })
    private String roleName;

    /**
     * 角色键
     */
    @NotBlank(message = "角色键不能为空", groups = { Save.class, Update.class })
    private String roleKey;

    /**
     * 排序等级
     */
    @NotNull(message = "排序等级不能为空", groups = { Save.class, Update.class })
    private Integer sort;

    /**
     * 备注
     */
    private String remark;

}
